\documentclass[tikz,border=3.14mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17} % 确保你的环境中安装了适当版本的pgfplots

\begin{document}
\begin{tikzpicture}
    \begin{axis}[
        axis lines=center,
        axis equal,
        view={110}{20}, % 调整视角
        xlabel=$x$, ylabel=$y$, zlabel=$z$,
        ticks=none, % 如果不需要坐标轴刻度可以这样设置
        title={Sphere $x^2+y^2+z^2=1$}
    ]
    % 绘制球体
    \addplot3[
        surf,
        colormap/cool,
        samples=40,
        domain=0:360,y domain=0:180,
        z buffer=sort,
        opacity=0.2
    ]
    ({cos(x)*sin(y)}, {sin(x)*sin(y)}, {cos(y)});
    
    \end{axis}
\end{tikzpicture}
\end{document}